package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.Dto.OrderDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.Dto.OrderDto;
import com.itheima.bean.Orders;
import com.itheima.common.PageParm;
import com.itheima.common.OrderPageParam;
import com.itheima.common.PageParm;
import com.itheima.common.PageParm;

import javax.servlet.http.HttpSession;
import java.text.ParseException;

public interface OrderService {

    /**
     * 添加订单表以及订单详细表
     * @return
     */
    int insert(Orders orders, HttpSession session);



    /**
     * 分页查询
     * @param pageParm
     * @return
     */
    IPage<Orders> look(OrderPageParam pageParm) throws ParseException;
    /**
     * 分页查询
     * @param param
     * @return
     */
    IPage<OrderDto> findByPage(PageParm param);

}
